package com.jboost.hyk.clazz.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jboost.hyk.clazz.entity.ClassLectureWorkTeacher;
import com.jboost.hyk.common.model.ClassLectureWorkTeacherVo;

/**
 * @Description: 老师点评学生作业
 * @Author: jeecg-boot
 * @Date:   2022-11-30
 * @Version: V1.0
 */
public interface ClassLectureWorkTeacherMapper extends BaseMapper<ClassLectureWorkTeacher> {

	Page<ClassLectureWorkTeacherVo> pageList(@Param("page")Page<ClassLectureWorkTeacherVo> page, @Param("query")ClassLectureWorkTeacherVo query);

	/**
	 * 查询下一条未点评的学生作业id
	 * @return
	 */
	String getNextNotCommitId(@Param("teacherId")String teacherId);
	/**
	 * 查询下一条学生作业id
	 * @return
	 */
	String getNextWorkStudentId(@Param("query")ClassLectureWorkTeacherVo query);
	String getLastWorkStudentId(@Param("query")ClassLectureWorkTeacherVo query);
	/**
	 * 根据学生作业id查询老师的点评
	 * @return 为null说明未点评
	 */
	ClassLectureWorkTeacher getByWorkStudentId(@Param("workStudentId")String workStudentId);

	

}
